package com.posinda.sc.domain.product.service.impl;

import com.posinda.sc.domain.product.model.entity.ProductCategory;
import com.posinda.sc.domain.product.model.repo.ProductCategoryRepo;
import com.posinda.sc.domain.product.service.ProductCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 类目表 服务实现类
 * </p>
 *
 * @author posinda
 * @since 2019-04-25
 */
@Service
public class ProductCategoryServiceImpl extends ServiceImpl<ProductCategoryRepo, ProductCategory> implements ProductCategoryService {
    @Autowired
    private ProductCategoryRepo productCategoryRepo;
    @Override
    public List<ProductCategory> findProductsByCategory(ProductCategory query) {
        return productCategoryRepo.findProductsByCategory(query);
    }
}
